package com.scvtc.mapper.party;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scvtc.domain.dto.party.PartyBaseDto;
import com.scvtc.domain.entity.party.PartyBase;
import org.apache.ibatis.annotations.Param;

public interface PartyBaseMapper extends BaseMapper<PartyBase> {
    /**
     * 分页查询党员所有信息
     *
     * @return
     */
    Page<PartyBase> getAllInfo(@Param("partyBasePage") Page<PartyBase> partyBasePage, @Param("partyBaseDto") PartyBaseDto partyBaseDto);

    /**
     * 修改党员信息
     *
     * @param partyBase
     * @return
     */
    int upDataPartInfo(@Param("PartyBase") PartyBase partyBase);

    /**
     * 新增党员
     *
     * @param partyBase
     * @return
     */
    int addPartInfo(@Param("PartyBase") PartyBase partyBase);

}
